//import org.fusesource.jansi.AnsiConsole;

public class JansiTest {
    public static void main(String[] args) {
        String reset = "\033[0m";      // 重置所有样式
        String redBg = "\033[41m";     // 红色背景
        String greenBg = "\033[42m";   // 绿色背景
        String blueBg = "\033[44m";    // 蓝色背景

        System.out.println(redBg + "红色背景文本" + reset);
        System.out.println(greenBg + "绿色背景文本" + reset);
        System.out.println(blueBg + "蓝色背景文本" + reset);
        System.out.println("\003[2J");
        System.out.println("hello");
    }
}

